enum StoreEndorseApplyField {
  NICK_NAME = "nick_name",
  MOBILE = "mobile",
  WECHAT_ID = "wechat_id",
  REMARK = "remark"
}

export const isStoreEndorseApplyField = (val: any): val is StoreEndorseApplyField => {
  return [
    StoreEndorseApplyField.NICK_NAME,
    StoreEndorseApplyField.MOBILE,
    StoreEndorseApplyField.WECHAT_ID,
    StoreEndorseApplyField.REMARK,
  ].includes(val);
};

export const everyIsStoreEndorseApplyField = (vals: any[]): boolean => {
  return vals.every(isStoreEndorseApplyField)
}

export default StoreEndorseApplyField;